def yihuo():
    print(5 ^ 7)
    # 任何数和自身异或得0，和0异或得自身
    print(5 ^ 5)
    print(5 ^ 0)
    # 找出出现一次得数
    mylist = [5, 3, 6, 5, 3]
    result = 0
    for i in mylist:
        result = result ^ i
    print(result)


yihuo()
def age():
    age = 18
    if age >= 18:
        print('ok')
    else:
        print('no')


# age()
def check_years():
    year = int(input())
    if year % 4 == 0 and year % 100 != 0 or year % 400 == 0:
        print('%d is runnian' % year)
    else:
        print('%d is not runnian' % year)


# check_years()
num = int(input('输入：'))  # 数字中有多少位是1
check_flag = 1
count = 0
i = 1
while i <= 64:
    if check_flag & num:
        count += 1
    check_flag = check_flag << 1#左移
    i += 1
print(count)
